const infoData = [
  {
    id: 1001,
    pics: [
      '../../../../../../../images/query/banner.png',
      '../../../../../../../images/query/banner.png',
      '../../../../../../../images/query/banner.png',
    ],
    title: '知识主题',
    content: '课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5。',
    people: {
      id: '飞翔的小土豆',
      pic: '../../../../../../../images/portrait.png',
      time: '2021-04-21 10:10'
    }
    // ../../../../../../../images/portrait.png
  },
  {
    id: 1002,
    pics: [
      '../../../../../../../images/query/banner.png',
      '../../../../../../../images/query/banner.png',
      '../../../../../../../images/query/banner.png',
    ],
    title: '知识主题',
    content: '课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5。',
    people: {
      id: '飞翔的小土豆',
      pic: '../../../../../../../images/portrait.png',
      time: '2021-04-21 10:10'
    }
    // ../../../../../../../images/portrait.png
  },
  {
    id: 1003,
    pics: [
      '../../../../../../../images/query/banner.png',
      '../../../../../../../images/query/banner.png',
      '../../../../../../../images/query/banner.png',
    ],
    title: '知识主题',
    content: '课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5，课程介绍DPlayer是一个支持弹幕的HTML5。',
    people: {
      id: '飞翔的小土豆',
      pic: '../../../../../../../images/portrait.png',
      time: '2021-04-21 10:10'
    }
    // ../../../../../../../images/portrait.png
  }
]

function getInfoData(id) {
  let newData = infoData.filter(e=>{
    if (id === e.id) {
      return e
    }
  })
  return newData[0]
}

export default getInfoData